<template>
    <div class="bg">
        <a-alert type="warning">
            严禁上传包含反动、暴力、色情、违法、及侵权内容的文件
            <a-link>点击查看完整内容</a-link>
        </a-alert>
        <div class="top-title">
            <div class="title">创建专栏</div>
            <a-link>如何创建专栏?</a-link>
        </div>
        <div class="steps">
            <div class="step-item" :class=" step == 1 ? 'step-active':'' ">
                第一步：创建专栏信息
            </div>
            <div class="step-item" :class=" step == 2 ? 'step-active':'' ">
                第二部：添加课程
            </div>
        </div>
    </div>
</template>
<script setup lang="ts">

const props = defineProps({
    step: {type: Number, default: 1},
  });

</script>
<style scoped lang="less">
.top-title {
    display: flex;
    align-items: center;
    margin: 14px auto;

    .title {
        font-size: 20px;
        color: #37383c;
        font-weight: bold;
    }
}

.bg {
    box-sizing: border-box;
    padding: 12px;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0px 2px 12px 0px rgb(0 0 0 / 10%);
}

.steps {
    width: calc(100% - 40px);
    display: flex;
    height: 40px;

    .step-item {
        position: relative;
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 14px;
        font-weight: 500;
        color: #909399;
        background-color: #E3E5EE;
    }

    .step-item::after {
        position: absolute;
        right: -40px;
        top: 0;
        content: '';
        display: block;
        width: 0;
        height: 0;
        border: 20px solid transparent;
        border-left-color: #E3E5EE;
        z-index: 100;
    }

    .step-active {
        color: #fff;
        background-color: #4E70F2;
    }

    .step-active.step-item::after {
        position: absolute;
        right: -40px;
        top: 0;
        content: '';
        display: block;
        width: 0;
        height: 0;
        border: 20px solid transparent;
        border-left-color: #4E70F2;
        z-index: 100;
    }
}
</style>